<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String path =request.getContextPath();
%>
<head>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script language="javascript" type="text/javascript" src="<%=path%>/js/validatorTool.js"></script>
	
	<script language="javascript" type="text/javascript">
		function qryData(){
			form1.action="<%=path%>/other/qrySupInfot";
			form1.submit();
		}

		function exportData(){
			form1.action="<%=path%>/other/exportSupInfoData?isList=y";
			form1.submit();
		}
	</script>
</head>
<body class="fullbody">
            <div class="context">
                <div class="position">
                    <div class="tposi">当前位置：
                       <a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');"class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                   		<a href="javascript:changeMenu(5,'');" class="linkstyle">业务查询</a>&nbsp;&gt;&gt;&nbsp;
                        <span class="curposition">供货情况汇总</span>
                    </div>
                    <div class="help">
						<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/GHQKHZ.html');" class="linkstyle">帮助</a>
					</div>
                </div>
                <div class="margin8"></div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;供货情况汇总</div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div class="subpage_search" >
                    	<form name="form1"   method="post">
	                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
	                            <tr>
	                                <td valign="middle" class="w_1"> 产品名称：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryProdName" name="qryProdName" type="text" value="${qryProdName}" class="searchtext" />
	                                </td>
	                                <td valign="middle" class="w_1">订单日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryOrderBeginDate" name="qryOrderBeginDate" type="text" 
											onclick="return showCalendar('qryOrderBeginDate', 'y-mm-dd');"
											readonly="readonly" value="${qryOrderBeginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qryOrderEndDate" name="qryOrderEndDate" type="text"  
	                                    	onclick="return showCalendar('qryOrderEndDate', 'y-mm-dd');"
		                                    readonly="readonly" value="${qryOrderEndDate}" class="searchdate" />
	                                </td>
	                            </tr>
	                            <tr>
	                            	<td valign="middle" class="w_1">到货日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryArrBeginDate" name="qryArrBeginDate" type="text"  
	                                    	onclick="return showCalendar('qryArrBeginDate', 'y-mm-dd');"
	                                    	readonly="readonly" value="${qryArrBeginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qryArrEndDate" name="qryArrEndDate" type="text"  
	                                    	onclick="return showCalendar('qryArrEndDate', 'y-mm-dd');" 
	                                    	readonly="readonly" value="${qryArrEndDate}" class="searchdate" />
	                                </td>
	                                <td valign="middle" class="w_1">退货日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryUnArrBeginDate" name="qryUnArrBeginDate" type="text"  
	                                    	onclick="return showCalendar('qryUnArrBeginDate', 'y-mm-dd');"
	                                    	readonly="readonly" value="${qryUnArrBeginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qryUnArrEndDate" name="qryUnArrEndDate" type="text"  
	                                    	onclick="return showCalendar('qryUnArrEndDate', 'y-mm-dd');" 
	                                    	readonly="readonly" value="${qryUnArrEndDate}" class="searchdate" />
	                                </td>
	                            </tr>
	                            <tr>
	                                <td valign="middle" class="w_1">入库日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryStorageBeginDate" name="qryStorageBeginDate" type="text"  
	                                    	onclick="return showCalendar('qryStorageBeginDate', 'y-mm-dd');"
	                                    	readonly="readonly" value="${qryStorageBeginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qryStorageEndDate" name="qryStorageEndDate" type="text"  
	                                    	onclick="return showCalendar('qryStorageEndDate', 'y-mm-dd');"
	                                    	readonly="readonly" value="${qryStorageEndDate}" class="searchdate" />
	                                </td>
	                               <td valign="middle" class="w_1"> 退库日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryUnStorageBeginDate" name="qryUnStorageBeginDate" type="text"  
	                                    	onclick="return showCalendar('qryUnStorageBeginDate', 'y-mm-dd');"
	                                    	readonly="readonly" value="${qryUnStorageBeginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qryUnStorageEndDate" name="qryUnStorageEndDate" type="text"  
	                                    	onclick="return showCalendar('qryUnStorageEndDate', 'y-mm-dd');"
	                                    	readonly="readonly" value="${qryUnStorageEndDate}" class="searchdate" />
	                                </td>
	                            </tr>
	                            <tr>
	                                <td valign="middle" class="w_1">发票日期：</td>
	                                <td valign="middle" class="w_2">
	                                    <input id="qryInvoiceBeginDate" name="qryInvoiceBeginDate" type="text"  
	                                    	onclick="return showCalendar('qryInvoiceBeginDate', 'y-mm-dd');" 
	                                    	readonly="readonly" value="${qryInvoiceBeginDate}" class="searchdate" />&nbsp;至&nbsp;
	                                    <input id="qryInvoiceEndDate" name="qryInvoiceEndDate" type="text"  
	                                    	onclick="return showCalendar('qryInvoiceEndDate', 'y-mm-dd');"
	                                    	readonly="readonly" value="${qryInvoiceEndDate}" class="searchdate" />
	                                </td>
	                            </tr>
	                            <tr><td colspan="4">&nbsp;</td></tr>
	                            <tr>
	                                <td valign="middle" colspan="4" align="center">
	                                    <input type="button" class="btnscs" value="查询" onclick="qryData()" />&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="取消" onclick="resetData()"/>&nbsp;&nbsp;
	                                    <input type="button" class="btnscs" value="导出" onclick="exportData()" <c:if test="${supInfoForms==null}">disabled</c:if>/>
	                                </td>
	                            </tr>
	                        </table>
                    	</form>
                    </div>
                    <div class="margin20">
                    </div>
                    <div>
                        <table class="tableCss" cellpadding="0" cellspacing="0" >
							<tr  class="titleTr" >
                                <th width="206px">产品</th>
                                <th width="136px">订单</th>
                                <th width="161px">到货</th>
                                <th width="161px">入库</th>
                                <th width="136px" class="th1">开票</th>
                            </tr>
                            <c:if test="${supInfoForms!=null}">
								<c:forEach items="${supInfoForms}" var="supInfoForm" varStatus="index">
									<c:if test="${supInfoForm.index%2==1}">
										<tr align="left" class="contTr-old"  >
									</c:if>
									<c:if test="${supInfoForm.index%2==0}">
										<tr align="left" class="contTr-even">
									</c:if>
										<td class="td1">
											<span class="prodName">${supInfoForm.prodName}</span><br/>
											<c:if test="${supInfoForm.module!=null && ''!=supInfoForm.module}">
												规格：${supInfoForm.module} <br/>
											</c:if>
											<c:if test="${supInfoForm.type!=null && ''!=supInfoForm.type}">
												型号：${supInfoForm.type}<br/>
											</c:if>
											<c:if test="${supInfoForm.desc!=null && ''!=supInfoForm.desc}">
												描述：${supInfoForm.desc}
											</c:if>
										<td class="td1">
											数量：<a class="ebvpLinkStyle" href="<%=path%>/other/qryOrderByProd?pkProd=${supInfoForm.pkProd}"><font class="words-red-bold">${supInfoForm.orderNum}</font></a>
											<c:if test="${supInfoForm.orderNum!=null && supInfoForm.orderNum != '0.000000000'}">
												${supInfoForm.measureName}
											</c:if>
											<br/>
										 	金额：<font class="words-red-bold">${supInfoForm.orderAmount}</font>
										 </td>
										<td class="td1" >
											到货数量：<a class="ebvpLinkStyle" href="<%=path%>/other/qryArrGoodsByProd?pkProd=${supInfoForm.pkProd}"><font class="words-red-bold">${supInfoForm.arriveNun}</font></a>
											<c:if test="${supInfoForm.arriveNun!=null && supInfoForm.arriveNun != '0.000000000'}">
												${supInfoForm.measureName}
											</c:if>
											<br/>
											退货数量：<a class="ebvpLinkStyle" href="<%=path%>/other/qryUnArrGoodsByProd?pkProd=${supInfoForm.pkProd}"><font class="words-red-bold">${supInfoForm.backNum}</font></a>
											<c:if test="${supInfoForm.backNum!=null && supInfoForm.backNum != '0.000000000'}">
												${supInfoForm.measureName}
											</c:if>
											</td>
										<td class="td1">
											到库数量：<a class="ebvpLinkStyle" href="<%=path%>/other/qryStorageByProd?pkProd=${supInfoForm.pkProd}"><font class="words-red-bold">${supInfoForm.storageNum}</font></a>
											<c:if test="${supInfoForm.storageNum!=null && supInfoForm.storageNum != '0.000000000'}">
												${supInfoForm.measureName}
											</c:if>
											<br/>
											退库数量：<a class="ebvpLinkStyle" href="<%=path%>/other/qryUnStorageByProd?pkProd=${supInfoForm.pkProd}"><font class="words-red-bold">${supInfoForm.unStorageNum}</font></a>
											<c:if test="${supInfoForm.unStorageNum!=null && supInfoForm.unStorageNum != '0.000000000'}">
												${supInfoForm.measureName}
											</c:if>
										</td>
										<td class="td1">
											数量：<a class="ebvpLinkStyle" href="<%=path%>/other/qryInvoiceByProd?pkProd=${supInfoForm.pkProd}"><font class="words-red-bold">${supInfoForm.invoiceNum}</font></a>
											<c:if test="${supInfoForm.invoiceNum!=null && supInfoForm.invoiceNum != '0.000000000'}">
												${supInfoForm.measureName}
											</c:if>
											<br/>
											金额：<font class="words-red-bold">${supInfoForm.invoiceAmount}</font>
										</td>
									</tr>
								</c:forEach>
							</c:if>
                        </table>
                    </div>
                    <div class="margin8"></div>
                    <div class="margin8">
                    	<table align="left">
							<tr class="title">
								<td>
									<div id="message" class="msgcolor">${system_err_msg}</div>
								</td>
							</tr>
						</table>
					</div> 
                </div>
            </div>
        <div class="margin20"></div>
<!--    </div>-->
</body>
</html>
